package com.tang.sys.service;

import com.tang.dto.AddArticleDto;
import com.tang.sys.ResponseResult;
import com.tang.sys.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tang.sys.vo.ArticleDetailVo;
import com.tang.sys.vo.PageVo;
import com.tang.sys.vo.articleListVo;

import java.util.List;

/**
 * <p>
 * 文章表 服务类
 * </p>
 *
 * @author shankaka
 * @since 2023-04-14
 */
public interface IArticleService extends IService<Article> {

    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Integer categoryId);

    ResponseResult getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult newArticleList();

    ResponseResult add(AddArticleDto article);



    ResponseResult<PageVo> pageTagList(Integer pageNum, Integer pageSize, AddArticleDto addArticleDto);

    ResponseResult<Article> deldeteArticle(Long id);


    ResponseResult getTotal();

    ResponseResult<ArticleDetailVo> getArticleInfo(Long id);

    ResponseResult updateArticleDetail(Article article);

    ResponseResult updateArticleStatus(Article article);

    ResponseResult Blogadd(AddArticleDto article);

    ResponseResult updateArticleThumbnail(Article article);


}
